-- GENERATED SPELL FOR [Noxxious Scion] --


function spell0_13696(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(21068,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13696', 26000, 1)
end

function spell1_13696(pUnit, Event) --@Noxious Catalyst,n/a--
pUnit:FullCastSpellOnTarget(5413,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13696', 0, 1)
end

function Sorts_13696(pUnit, Event)
local choix_sorts_13696 = math.random(0, 1)
if choix_sorts_13696 == 0 then
pUnit:RegisterEvent('spell0_13696', 1, 1)
end
if choix_sorts_13696 == 1 then
pUnit:RegisterEvent('spell1_13696', 1, 1)
end
end

function mob13696_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13696', math.random(1500, 3000), 1)
end

function mob13696_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13696_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13696_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13696, 1, 'mob13696_Action')
RegisterUnitEvent(13696, 2, 'mob13696_Leave')
RegisterUnitEvent(13696, 3, 'mob13696_Kill')
RegisterUnitEvent(13696, 4, 'mob13696_Die')
